Replacing Text

You can replace text throughout your project using the Project Find command, or you can replace any text in a single file by choosing Edit > Find > Find.

Replacing Text Throughout Your Project

To replace text throughout your project:

  1. Click the Project Find button in the Project Browser.
  2. Type the text in the Find field, select an option from the pop-up menu, and click Find.

    These are the options in the pop-up menu:

    • Definitions: Search for any code that defines or declares the identifier in the Find field.
    • References: Search for any code that uses the identifier in the Find field.
    • Textually: Search for any text that uses the text in the Find field.
    • Reg Expr'n: Search for any text that matches the regular expression in the find field.
    Tip

    To choose how the Project Find panel lists its search results, choose Edit > Preferences, choose Find from the pop-up menu at the top of the dialog box, and adjust the "Order results by type (vs location)" option.

  3. In the Replace field, enter the text to substitute for the Find text.
  4. Choose the entries to replace.

    If you want to replace the text in all entries, don't select any. Project Builder automatically performs the replacement in all of them.

    To examine an entry in the list, click it. Project Builder displays the file and selects the Find text.

  5. Click Replace.

Replacing Text in a File

To replace text in a file:

Related Topics

© 1999 Apple Computer, Inc.